<?php

//This is the file called by cron to kick off the tgtai process for a single site
include_once (dirname(dirname(dirname(dirname(__FILE__)))) .  DIRECTORY_SEPARATOR."wp-load.php");
$url = plugins_url().'/TargetAI/tgtai_process_page.php';
	
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 1);  //Set timeout to 1ms so we return and let it run

curl_exec($ch);
curl_close($ch);

?>